package com.kotlin.mvpdemo.ui.message;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import com.kotlin.mvpdemo.R;
import com.kotlin.mvpdemo.base.BaseFragment;
import com.kotlin.mvpdemo.databinding.FragmentMessageBinding;
import com.kotlin.mvpdemo.ui.message.presenter.MessagePresenter;
import com.kotlin.mvpdemo.ui.message.view.MessageView;

/**
 * author : fang.zhang
 * e-mail : initzf@126.com
 * date   : 2020/6/6
 * desc   :
 */
public class MessageFragment extends BaseFragment<MessageView, MessagePresenter, FragmentMessageBinding> {
    @Override
    protected MessagePresenter getPresenter() {
        return new MessagePresenter();
    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_message;
    }

    @Override
    protected FragmentMessageBinding getViewBind(LayoutInflater inflater, ViewGroup container) {
        return FragmentMessageBinding.inflate(inflater, container, false);
    }

    public static MessageFragment newInstance() {
        
        Bundle args = new Bundle();
        
        MessageFragment fragment = new MessageFragment();
        fragment.setArguments(args);
        return fragment;
    }
}
